#macro(pageNation $data)
	#if($data.list.size() == 0)
<div class="row DTTTFooter no-padding" style="height:40px; line-height:40px; text-align:center; font-size:14px;">
未查询到记录
</div>
	#end
    	#if($data.list.size() > 0)
	     <div id="activityTable_info" class="dataTables_info" role="status" aria-live="polite">显示第 $!{data.startRow} 至 $!{data.endRow} 项结果，共 $!{data.total}项</div>
	     <div id="pagination" class="dataTables_paginate paging_full_numbers">
			#set($prevPage = ${data.prePage})
    		#set($nextnPage = ${data.nextPage})
			<a #if($data.pageNum ==1) class="paginate_button disabled" disabled="disabled" href="javascript:void(0)"
				#else class="paginate_button" pageNum="1" href="javascript:goPage(1)"
				#end style="margin-left: 2px;"
			>首页</a>
			<a #if($data.pageNum ==1) class="paginate_button disabled" disabled="disabled" href="javascript:void(0)"
				#else  class="paginate_button" pageNum="$prevPage" href="javascript:goPage($prevPage)"
				#end style="margin-left: 2px;"
            > 上页 </a>
			#set($offsetStart=1)
			#set($offsetEnd=${data.pages})
			#if($offsetEnd > 5)
				#if($offsetEnd - ${data.pageNum} >= 2)
					#set($offsetEnd = ${data.pageNum} + 2)
				#end
				#set($offsetStart = $offsetEnd - 4)
				#if($offsetStart < 1)
					#set($offsetStart = 1)
					#set($offsetEnd = 5)
				#end
			#end
			#foreach($foo in [$!offsetStart..$offsetEnd])
				<a class="paginate_button #if($foo==${data.pageNum}) current #end" pageNum="$foo" href="javascript:goPage($foo)" style="margin-left: 2px;"
				> $foo </a>
			#end
			<a 
				#if($data.pageNum == $data.pages) class="paginate_button disabled" disabled="disabled"
				#else  class="paginate_button" pageNum="$nextnPage" href="javascript:goPage($nextnPage)"
				#end style="margin-left: 2px;"
            > 下页
			<a
				#if($data.pageNum == $data.pages)
				  class="paginate_button disabled"	disabled="disabled" href="javascript:void(0)"
				#else
				 class="paginate_button" pageNum="$data.pages" href="javascript:goPage($data.pages)"
				#end 
				>末页</a>
		#end
	</div>
	<div p_sortinfo="$!{data.orderBy}" p_isFirst=$!{data.isFirst} p_isLast=$!{data.isLast} p_currentpagenum="$!{data.pageNum}" p_totalsize="$!{data.total}" p_endrow="$!{data.endRow}" p_totalpagesnum="$!{data.pages}" p_pagesize="$!{data.pageSize}" p_startrow="$!{data.startRow}" style="display:none" class="paginator"></div>
#end